<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">


<head>
	<title>角色管理</title>
	<th:block th:replace="common/header :: iframeHead"></th:block>

</head>
<body class="child-body">
<!--<div id="content-header">-->
	<!--<div class="row-fluid">-->
		<!--<h1>角色查询</h1>-->
	<!--</div>-->
<!--</div>-->
<div id="breadcrumb">
	<a href="#" class="tip-bottom">系统管理 / </a>
	<a href="#" class="current"><H4>角色详细</H4></a>
</div>
<div class="container-fluid">
	<!-- 主体部分 -->
	<div class="row-fluid">
		<div class="span12">
			<div class="widget-box">
				<form id="editform" class="form-vertical" th:action="@{/roles/list}" action="#" th:object="${formBean}"  method="post">

					<!--查询条件-->
					<div th:replace="role/sub/roleEdit :: editBlock"></div>

					<!--角色权限选择树-->
					<div th:replace="common/selectTree :: tableBlock"></div>

				</form>
			</div>
		</div>
	</div>
</div>

<!-- 弹出信息确认窗口 -->
<div th:replace="common/msgConfirm :: msgBlock"></div>

<!-- 删除确认窗口 -->
<div th:replace="common/deleteConfirm :: delBlock"></div>

</body>


<!-- footer -->
<div th:replace="common/footer :: footerBlock"></div>

<script type="text/javascript" th:inline="javascript">
    /*<![CDATA[*/
    var treeLs =eval( /*[[${formBean.treeList}]]*/ );
    var strOption="";
    for (var items = 0;items<treeLs.length;items++) {
        if(treeLs[items].strSelected =='1'){
            strOption='<option value='+treeLs[items].guid
                +' data-section='+treeLs[items].dataSection +' selected>'
                + treeLs[items].optionText+'</option>'
            $("#treeSelectLs").append(strOption);
        }else{
            strOption='<option value='+treeLs[items].guid
                +' data-section='+treeLs[items].dataSection +'>'
                +treeLs[items].optionText+'</option>'
            $("#treeSelectLs").append(strOption);
        }

    }
    console.profile('tree-multiselect');
    $('#treeSelectLs').treeMultiselect({ enableSelectAll: true, sortable: false, searchable: true });
    console.profileEnd();

    /*]]>*/
</script>
</html>
